package com.qinglei.recoup;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qinglei.recoup.app.dao.RadarWechatAppSubscriptionMapper;
import com.qinglei.recoup.app.domain.RadarWechatAppSubscription;
import com.qinglei.recoup.app.pojo.RadarWechatAppSubscriptionEnum;
import com.qinglei.recoup.system.task.WxTask;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class WxTest2 {

    @Autowired
    private RadarWechatAppSubscriptionMapper radarWechatAppSubscriptionMapper;

    @Test
   public void test(){
        QueryWrapper queryDay = new QueryWrapper();
        queryDay.eq("sn_code","E868E7E76484");
        queryDay.eq("open_id","oyvpQ6FqYOWiTY-Uzj8LmMBt1ui8");
        queryDay.eq("is_deleted",0);
        queryDay.eq("type", RadarWechatAppSubscriptionEnum.DAILY.getCode());
        RadarWechatAppSubscription radarWechatAppSubscriptionDay =   radarWechatAppSubscriptionMapper.selectOne(queryDay);
        System.out.println("radarWechatAppSubscriptionDay，"+radarWechatAppSubscriptionDay);
   }
}
